import { JwtDecrypTool } from './../utils/internalTools';
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { JwtModule } from '@nestjs/jwt';

import { Course } from './entities/course.entity';

import { CourseService } from './course.service';
import { CourseController } from './course.controller';

import { jwtConfig } from '../config/jwt';

@Module({
  imports: [TypeOrmModule.forFeature([Course]), JwtModule.register(jwtConfig)],
  controllers: [CourseController],
  providers: [CourseService, JwtDecrypTool],
})
export class CourseModule {}
